import Vue from 'vue'
import store from '@/store'
Vue.directive('check-btn', {
  inserted(el, binding) {
    console.log('自定义指令', el, binding.value)
    const points = store.state.user.userInfo.roles.points
    if (!points.includes(binding.value)) {
      el.parentNode.removeChild(el)
    }
  }
})
